package com.doit.day01;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class RedisClintDemo {
    public static void main(String[] args) {

//        Jedis jedis = new Jedis("linux01", 6379);
//        jedis.close();

        JedisPool pool = new JedisPool("linux01", 6379);
        Jedis jedis = pool.getResource();
        System.out.println(jedis.ping());

    }
}
